package question4.Test2;

public class Student {
    private String name;
    private int age;
    private double length;
    private boolean married;
    private char  genger;

    public Student() {
    }

    public Student(String name, int age, double length, boolean married, char genger) {
        this.name = name;
        this.age = age;
        this.length = length;
        this.married = married;
        this.genger = genger;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getLength() {
        return length;
    }

    public void setLength(double length) {
        this.length = length;
    }

    public boolean isMarried() {
        return married;
    }

    public void setMarried(boolean married) {
        this.married = married;
    }

    public char getGenger() {
        return genger;
    }

    public void setGenger(char genger) {
        this.genger = genger;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", length=" + length +
                ", married=" + married +
                ", genger=" + genger +
                '}';
    }
}
